
package com.be.beadmin.device.repository;

import com.be.beadmin.device.entity.DeFile;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
* @author chenxu
* @date 2023-11-12
**/
public interface DeFileRepository extends JpaRepository<DeFile, String>, JpaSpecificationExecutor<DeFile> {

    DeFile findDeFileByIdAndDelete(String id, Integer delete);

    DeFile findDeFileById(String id);
    int countDeFilesByFileNameAndDeviceNameAndDelete(String fileName , String itemName , Integer delete);

    int countDeFilesByFileNameAndVersionAndDelete(String fileName , String version , Integer delete);

}